package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
public class UpdateAdvertisementRequest {
    @ApiModelProperty("id")
    @NotNull(message = "id不能为空")
    private Long id;
    @ApiModelProperty("1 不跳转 2富文本 3外部连接")
    @NotNull(message = "类型不能为空")
    private Integer type;
    @NotNull(message = "图片地址不能为空")
    @ApiModelProperty("图片地址")
    private String imgUrl;
    @ApiModelProperty("跳转内容")
    private String reUrl;
    @ApiModelProperty("排序")
    @NotNull(message = "顺序不能为空")
    private Integer rank;
    @ApiModelProperty("名称")
    @NotNull(message = "名称不能为空")
    private String name;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("是否上架 true 上架中 false 下架中")
    @NotNull(message = "banner状态不能为空")
    private Boolean isOpen;
}

